home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 4-Demos / Apple Demos / Tutorials / Display Card 4•8⁄8•24 Training / Display Card 4•8_8•24 Training / background_4016.txt < prev    next >
Text File  |  1990-03-19  |  7KB  |  326 lines

  1. -- background: 4016 from stack: in
  2. -- bmap block id: 4265
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: mapBack
  6. ----- HyperTalk script -----
  7. on openBackground
  8.   global mapLoc, cardLoc, cardName, tally
  9.   set cursor to watch
  10.  
  11.   repeat with x = 1 to 14  --  all the sections
  12.     if line x of field "footprints" is empty or line x of fld "footprints" = "no" then
  13.       set the style of bkgnd button x to opaque
  14.     else set the style of bkgnd button x to transparent
  15.     set the icon of bkgnd button x to 0
  16.   end repeat
  17.  
  18.   set the icon of bkgnd button 13 to 0  --  the stack map
  19.   set the style of bkgnd button 13 to transparent
  20.   --set the icon of bkgnd button mapLoc to "Open Cross small"
  21.  
  22.   if line 11 of field "footprints" = "done" then exit openBackground
  23.  
  24.   repeat with x = 1 to 10
  25.     if line x of field "footprints" ‚↠"yes" then exit openBackground
  26.   end repeat
  27.  
  28.   put "done" into line 11 of field "footprints"
  29.  
  30.   answer "Congratulations! You finished the stack." with "Thank You"
  31.   answer "Would you like a Certificate of Completion?" with "Yes" or "No"
  32.   if it = "No" then exit openBackground
  33.  
  34.   push card
  35.   visual dissolve
  36.   go card "certificate1"
  37.  
  38. end openBackground
  39.  
  40. on closeBackground
  41.   global mapLoc
  42.   put 13 into mapLoc
  43. end closeBackground
  44.  
  45.  
  46.  
  47.  
  48. -- part 3 (field)
  49. -- low flags: 01
  50. -- high flags: 0000
  51. -- rect: left=128 top=22 right=44 bottom=508
  52. -- title width / last selected line: 0
  53. -- icon id / first selected line: 0 / 0
  54. -- text alignment: 0
  55. -- font id: 21
  56. -- text size: 18
  57. -- style flags: 0
  58. -- line height: 20
  59. -- part name: cardTitle
  60.  
  61.  
  62. -- part 7 (field)
  63. -- low flags: 01
  64. -- high flags: 0000
  65. -- rect: left=128 top=63 right=82 bottom=508
  66. -- title width / last selected line: 0
  67. -- icon id / first selected line: 0 / 0
  68. -- text alignment: 0
  69. -- font id: 157
  70. -- text size: 14
  71. -- style flags: 0
  72. -- line height: 16
  73. -- part name: cardText
  74.  
  75.  
  76. -- part 16 (button)
  77. -- low flags: 00
  78. -- high flags: 0000
  79. -- rect: left=129 top=101 right=117 bottom=157
  80. -- title width / last selected line: 0
  81. -- icon id / first selected line: 0 / 0
  82. -- text alignment: 1
  83. -- font id: 0
  84. -- text size: 12
  85. -- style flags: 0
  86. -- line height: 16
  87. -- part name: open
  88.  
  89.  
  90. -- part 17 (button)
  91. -- low flags: 00
  92. -- high flags: 0000
  93. -- rect: left=129 top=157 right=173 bottom=157
  94. -- title width / last selected line: 0
  95. -- icon id / first selected line: 0 / 0
  96. -- text alignment: 1
  97. -- font id: 0
  98. -- text size: 12
  99. -- style flags: 0
  100. -- line height: 16
  101. -- part name: help
  102.  
  103.  
  104. -- part 18 (button)
  105. -- low flags: 00
  106. -- high flags: 0001
  107. -- rect: left=289 top=101 right=117 bottom=317
  108. -- title width / last selected line: 0
  109. -- icon id / first selected line: 0 / 0
  110. -- text alignment: 1
  111. -- font id: 0
  112. -- text size: 12
  113. -- style flags: 0
  114. -- line height: 16
  115. -- part name: intro
  116.  
  117.  
  118. -- part 19 (button)
  119. -- low flags: 00
  120. -- high flags: 0001
  121. -- rect: left=361 top=101 right=117 bottom=389
  122. -- title width / last selected line: 0
  123. -- icon id / first selected line: 0 / 0
  124. -- text alignment: 1
  125. -- font id: 0
  126. -- text size: 12
  127. -- style flags: 0
  128. -- line height: 16
  129. -- part name: f&b
  130.  
  131.  
  132. -- part 20 (button)
  133. -- low flags: 00
  134. -- high flags: 0001
  135. -- rect: left=433 top=101 right=117 bottom=461
  136. -- title width / last selected line: 0
  137. -- icon id / first selected line: 0 / 0
  138. -- text alignment: 1
  139. -- font id: 0
  140. -- text size: 12
  141. -- style flags: 0
  142. -- line height: 16
  143. -- part name: market
  144.  
  145.  
  146. -- part 21 (button)
  147. -- low flags: 00
  148. -- high flags: 0001
  149. -- rect: left=289 top=157 right=173 bottom=317
  150. -- title width / last selected line: 0
  151. -- icon id / first selected line: 0 / 0
  152. -- text alignment: 1
  153. -- font id: 0
  154. -- text size: 12
  155. -- style flags: 0
  156. -- line height: 16
  157. -- part name: technology
  158.  
  159.  
  160. -- part 22 (button)
  161. -- low flags: 00
  162. -- high flags: 0001
  163. -- rect: left=361 top=157 right=173 bottom=389
  164. -- title width / last selected line: 0
  165. -- icon id / first selected line: 0 / 0
  166. -- text alignment: 1
  167. -- font id: 0
  168. -- text size: 12
  169. -- style flags: 0
  170. -- line height: 16
  171. -- part name: service
  172.  
  173.  
  174. -- part 23 (button)
  175. -- low flags: 00
  176. -- high flags: 0001
  177. -- rect: left=433 top=157 right=173 bottom=461
  178. -- title width / last selected line: 0
  179. -- icon id / first selected line: 0 / 0
  180. -- text alignment: 1
  181. -- font id: 0
  182. -- text size: 12
  183. -- style flags: 0
  184. -- line height: 16
  185. -- part name: question
  186.  
  187.  
  188. -- part 24 (button)
  189. -- low flags: 00
  190. -- high flags: 0001
  191. -- rect: left=289 top=265 right=281 bottom=317
  192. -- title width / last selected line: 0
  193. -- icon id / first selected line: 0 / 0
  194. -- text alignment: 1
  195. -- font id: 0
  196. -- text size: 12
  197. -- style flags: 0
  198. -- line height: 16
  199. -- part name: glossary
  200.  
  201.  
  202. -- part 45 (field)
  203. -- low flags: 80
  204. -- high flags: 0000
  205. -- rect: left=8 top=24 right=155 bottom=95
  206. -- title width / last selected line: 0
  207. -- icon id / first selected line: 0 / 0
  208. -- text alignment: 0
  209. -- font id: 3
  210. -- text size: 9
  211. -- style flags: 0
  212. -- line height: 9
  213. -- part name: footprints
  214.  
  215.  
  216. -- part 47 (field)
  217. -- low flags: 00
  218. -- high flags: 0000
  219. -- rect: left=128 top=0 right=21 bottom=508
  220. -- title width / last selected line: 0
  221. -- icon id / first selected line: 0 / 0
  222. -- text alignment: 0
  223. -- font id: 21
  224. -- text size: 18
  225. -- style flags: 10240
  226. -- line height: 19
  227. -- part name: Title
  228.  
  229.  
  230. -- part 49 (field)
  231. -- low flags: 81
  232. -- high flags: 0000
  233. -- rect: left=8 top=173 right=321 bottom=123
  234. -- title width / last selected line: 0
  235. -- icon id / first selected line: 0 / 0
  236. -- text alignment: 0
  237. -- font id: 3
  238. -- text size: 9
  239. -- style flags: 0
  240. -- line height: 9
  241. -- part name: menuList
  242.  
  243.  
  244. -- part 52 (field)
  245. -- low flags: 81
  246. -- high flags: 0000
  247. -- rect: left=0 top=330 right=342 bottom=108
  248. -- title width / last selected line: 0
  249. -- icon id / first selected line: 0 / 0
  250. -- text alignment: 0
  251. -- font id: 3
  252. -- text size: 9
  253. -- style flags: 0
  254. -- line height: 9
  255. -- part name: cardName
  256.  
  257.  
  258. -- part 53 (button)
  259. -- low flags: 00
  260. -- high flags: 0001
  261. -- rect: left=361 top=212 right=228 bottom=389
  262. -- title width / last selected line: 0
  263. -- icon id / first selected line: 0 / 0
  264. -- text alignment: 1
  265. -- font id: 0
  266. -- text size: 12
  267. -- style flags: 0
  268. -- line height: 16
  269. -- part name: index
  270.  
  271.  
  272. -- part 59 (button)
  273. -- low flags: 00
  274. -- high flags: 0001
  275. -- rect: left=360 top=265 right=281 bottom=388
  276. -- title width / last selected line: 0
  277. -- icon id / first selected line: 0 / 0
  278. -- text alignment: 1
  279. -- font id: 0
  280. -- text size: 12
  281. -- style flags: 0
  282. -- line height: 16
  283. -- part name: test
  284.  
  285.  
  286. -- part 60 (button)
  287. -- low flags: 00
  288. -- high flags: 0000
  289. -- rect: left=207 top=196 right=212 bottom=235
  290. -- title width / last selected line: 0
  291. -- icon id / first selected line: 0 / 0
  292. -- text alignment: 1
  293. -- font id: 0
  294. -- text size: 12
  295. -- style flags: 0
  296. -- line height: 16
  297. -- part name: content
  298.  
  299.  
  300. -- part 54 (button)
  301. -- low flags: 00
  302. -- high flags: 0000
  303. -- rect: left=209 top=99 right=115 bottom=237
  304. -- title width / last selected line: 0
  305. -- icon id / first selected line: 0 / 0
  306. -- text alignment: 1
  307. -- font id: 0
  308. -- text size: 12
  309. -- style flags: 0
  310. -- line height: 16
  311. -- part name: map
  312.  
  313.  
  314. -- part 63 (button)
  315. -- low flags: 00
  316. -- high flags: 0001
  317. -- rect: left=289 top=212 right=228 bottom=317
  318. -- title width / last selected line: 0
  319. -- icon id / first selected line: 0 / 0
  320. -- text alignment: 1
  321. -- font id: 0
  322. -- text size: 12
  323. -- style flags: 0
  324. -- line height: 16
  325. -- part name: New Button
  326.